<?php
$xtpl = new XTemplate($inner_templates."home.gallery.htm");

$xtpl->assign ("base_url", $base_url);

$_SESSION['back_url'] = selfURL();

$sql = "SELECT * FROM {$DP}gallery WHERE status = 1";
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs)){
    if(!file_exists($rootPath."upload/gallery/".$row['image'])){
        continue;
    }
    $name = unserialize($row['title']);
    $row['title']= $name[$langCode];
    
    $name = unserialize($row['description']);
    $row['description']= $name[$langCode];
    $xtpl->assign("list",$row);
    $xtpl->parse("center.listImage");
    $xtpl->parse("center.listText");
}

$titlePage = _LB_GALLERY;
$xtpl_main->assign ("page_title", $titlePage);
$rs = $DB->ZenDataList('about_us','','id_lang='.$_SESSION['ID_LANG'],'sp_pos ASC',"");
while($row = mysql_fetch_array($rs)){        
        $row['title']=stripslashes($row['sp_name']);
        $row['sp_text']=stripslashes($row['sp_text']);
        $row['id'] = $row['sp_id'];
        $row['class'] = "leftMenu";
        $row['url_html'] = RemoveSign($row['title']).".html";
        $xtpl->assign("list",$row);
        $xtpl->parse("center.listAboutUs");
}
//-- end
?>
